<script setup lang="ts">
import DoctorCard from './DoctorCard.vue'
</script>

<template>
  <div class="follow-doctor">
    <div className="head">
      <p>推荐关注</p>
      <a href="javascript:;"> 查看更多<i class="van-icon van-icon-arrow" /></a>
    </div>
    <div class="body">
      <!-- swipe 组件 -->
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item>
          <DoctorCard /><DoctorCard/>
        </van-swipe-item>
        <van-swipe-item><DoctorCard /><DoctorCard/></van-swipe-item>
        <van-swipe-item><DoctorCard /><DoctorCard/></van-swipe-item>
        <van-swipe-item><DoctorCard /><DoctorCard/></van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.follow-doctor {
  background-color: var(--cp-bg);
  height: 250px;
  .head {
    display: flex;
    justify-content: space-between;
    height: 45px;
    align-items: center;
    padding: 0 15px;
    font-size: 13px;
    > a {
      color: var(--cp-tip);
    }
  }
  .body {
    width: 100%;
    overflow: hidden;
  }
}
</style>
